package com.university.vo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Admin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "admin", catalog = "university")

public class Admin implements java.io.Serializable {

	// Fields

	private Integer adminId;
	private String adminUsername;
	private String adminPassword;
	private Timestamp adminLastLoginTime;
	private String adminLastLoginIp;
	private Boolean adminIsSuper;
	private Boolean adminEnable;

	// Constructors

	/** default constructor */
	public Admin() {
	}

	@Override
	public String toString() {
		return "Admin [adminId=" + adminId + ", adminUsername=" + adminUsername + ", adminPassword=" + adminPassword
				+ ", adminLastLoginTime=" + adminLastLoginTime + ", adminLastLoginIp=" + adminLastLoginIp
				+ ", adminIsSuper=" + adminIsSuper + ", adminEnable=" + adminEnable + "]";
	}

	/** full constructor */
	public Admin(String adminUsername, String adminPassword, Timestamp adminLastLoginTime, String adminLastLoginIp,
			Boolean adminIsSuper, Boolean adminEnable) {
		this.adminUsername = adminUsername;
		this.adminPassword = adminPassword;
		this.adminLastLoginTime = adminLastLoginTime;
		this.adminLastLoginIp = adminLastLoginIp;
		this.adminIsSuper = adminIsSuper;
		this.adminEnable = adminEnable;
	}

	// Property accessors
	@Id
	@GeneratedValue

	@Column(name = "admin_id", unique = true, nullable = false)

	public Integer getAdminId() {
		return this.adminId;
	}

	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}

	@Column(name = "admin_username", length = 20)

	public String getAdminUsername() {
		return this.adminUsername;
	}

	public void setAdminUsername(String adminUsername) {
		this.adminUsername = adminUsername;
	}

	@Column(name = "admin_password", length = 20)

	public String getAdminPassword() {
		return this.adminPassword;
	}

	public void setAdminPassword(String adminPassword) {
		this.adminPassword = adminPassword;
	}

	@Column(name = "admin_lastLoginTime", length = 19)

	public Timestamp getAdminLastLoginTime() {
		return this.adminLastLoginTime;
	}

	public void setAdminLastLoginTime(Timestamp adminLastLoginTime) {
		this.adminLastLoginTime = adminLastLoginTime;
	}

	@Column(name = "admin_lastLoginIp", length = 200)

	public String getAdminLastLoginIp() {
		return this.adminLastLoginIp;
	}

	public void setAdminLastLoginIp(String adminLastLoginIp) {
		this.adminLastLoginIp = adminLastLoginIp;
	}

	@Column(name = "admin_isSuper", insertable = false)

	public Boolean getAdminIsSuper() {
		return this.adminIsSuper;
	}

	public void setAdminIsSuper(Boolean adminIsSuper) {
		this.adminIsSuper = adminIsSuper;
	}

	@Column(name = "admin_enable", insertable = false)

	public Boolean getAdminEnable() {
		return this.adminEnable;
	}

	public void setAdminEnable(Boolean adminEnable) {
		this.adminEnable = adminEnable;
	}

}